package cn.ilovese.collect.po.recommend;

import cn.ilovese.collect.vo.recommend.RecommendRuleVO;
import lombok.NonNull;

public class RecommendRule {
    private Integer id;

    private String name;

    private Double taskAcceptedFactor;

    private Double testEnvFactor;

    private Double skillFactor;

    private Double taskPreferFactor;

    private Double taskLatestDdlFactor;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Double getTaskAcceptedFactor() {
        return taskAcceptedFactor;
    }

    public void setTaskAcceptedFactor(Double taskAcceptedFactor) {
        this.taskAcceptedFactor = taskAcceptedFactor;
    }

    public Double getTestEnvFactor() {
        return testEnvFactor;
    }

    public void setTestEnvFactor(Double testEnvFactor) {
        this.testEnvFactor = testEnvFactor;
    }

    public Double getSkillFactor() {
        return skillFactor;
    }

    public void setSkillFactor(Double skillFactor) {
        this.skillFactor = skillFactor;
    }

    public Double getTaskPreferFactor() {
        return taskPreferFactor;
    }

    public void setTaskPreferFactor(Double taskPreferFactor) {
        this.taskPreferFactor = taskPreferFactor;
    }

    public Double getTaskLatestDdlFactor() {
        return taskLatestDdlFactor;
    }

    public void setTaskLatestDdlFactor(Double taskLatestDdlFactor) {
        this.taskLatestDdlFactor = taskLatestDdlFactor;
    }
    public RecommendRule(@NonNull RecommendRuleVO recommendRule){
        id = recommendRule.getId();
        name=recommendRule.getName();
        taskAcceptedFactor=recommendRule.getTaskAcceptedFactor();
        testEnvFactor=recommendRule.getTestEnvFactor();
        skillFactor=recommendRule.getSkillFactor();
        taskPreferFactor=recommendRule.getTaskPreferFactor();
        taskLatestDdlFactor=recommendRule.getTaskLatestDdlFactor();
    }
    public RecommendRule(){

    }
}